from flask_restful import Api

from App.apis.cinema_admin.cinema_address_api import CinemaAddressResource, CinemaAddressesResource
from App.apis.cinema_admin.cinema_hall_api import CinemaHallsResource
from App.apis.cinema_admin.cinema_movie_api import CinemaMoviesResource
from App.apis.cinema_admin.cinema_movie_hall_api import CinemaMovieHallsResource
from App.apis.cinema_admin.cinema_user_api import CinemaUsersResource

cinema_client_api = Api(prefix='/cinema')


cinema_client_api.add_resource(CinemaUsersResource, "/users/")

cinema_client_api.add_resource(CinemaAddressesResource, "/addresses/")
cinema_client_api.add_resource(CinemaAddressResource, "/addresses/<int:id>/")


cinema_client_api.add_resource(CinemaMoviesResource, "/cinemamovies/")

cinema_client_api.add_resource(CinemaHallsResource, "/cinemahalls/")

cinema_client_api.add_resource(CinemaMovieHallsResource, "/cinemamoviehalls/")